package com.gt.andr.multbl;

/**
 * Generates Multiplication table
 * 
 * @author Ganesh
 * 
 */
public class MultiplicationTable {
	/**
	 * 
	 * @param n
	 *            , the target
	 * @return, String value of Multiplication table
	 */
	public static String getStringTable(int n) {
		StringBuilder sb = new StringBuilder();
		for (int i = 1; i <= 10; i++) {
			sb.append(n + " x " + i + " = " + i * n + "\n");
		}
		return sb.toString();
	}

}
